package com.lin.blog.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lin.blog.entity.Article;
import com.lin.blog.vo.ArticleStatistical;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lin
 * @since 2020-03-08
 */
public interface ArticleMapper extends BaseMapper<Article> {

    @Update("update article set look = look + #{count} where id = #{articleId} ")
    public Integer increaseArticleLooksById(@Param("articleId") Long articleId,@Param("count") Integer count);
}
